package com.rybbaby.tss.front.tssRightStatistic.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description 权责记录考勤列表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:23:36
 */
@Entity
@Table(name = "view_manual_deduction_responsibility")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewManualDeductionResponsibility implements Serializable {


	private static final long serialVersionUID = 3500388342210094589L;
	/** 主键 **/
	private String id;
	/** 权责类型 **/
	private Integer type;
	/** 产生权责类型 **/
	private Integer responsibilityType;
	/** 会员名字 **/
	private String studentName;
	/** 会员昵称 **/
	private String nickName;
	/** 联系电话 **/
	private Integer contactPhone;
	/** 合同编号 **/
	private String contractNumber;
	/** 课时包名称 **/
	private String packageName;
	/** 课时包类型 **/
	private Integer packageType;
	/** 扣课权责 **/
	private Double amount;
	/** 最后操作人 **/
	private String userName;
	/** 创建时间 **/
	private Timestamp updateTime;

	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_manual_deduction_responsibilityIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_manual_deduction_responsibilityIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "type", nullable= true, length = 11)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "responsibilityType", nullable= true, length = 11)
	public Integer getResponsibilityType() {
		return responsibilityType;
	}

	public void setResponsibilityType(Integer responsibilityType) {
		this.responsibilityType = responsibilityType;
	}

	@Column(name = "studentName", nullable= true, length = 12)
	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	@Column(name = "nickName", nullable= true, length = 50)
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	@Column(name = "contactPhone", nullable= true, length = 11)
	public Integer getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(Integer contactPhone) {
		this.contactPhone = contactPhone;
	}

	@Column(name = "contractNumber", nullable= true, length = 32)
	public String getContractNumber() {
		return contractNumber;
	}

	public void setContractNumber(String contractNumber) {
		this.contractNumber = contractNumber;
	}

	@Column(name = "packageName", nullable= true, length = 32)
	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	@Column(name = "packageType", nullable= true, length = 32)
	public Integer getPackageType() {
		return packageType;
	}

	public void setPackageType(Integer packageType) {
		this.packageType = packageType;
	}

	@Column(name = "amount", nullable= true, length = 11)
	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Column(name = "userName", nullable= true, length = 50)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "updateTime", nullable= true, length = 32)
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
}